package com.example.demo.service.impl;

import com.example.demo.dao.ClassificationTableDao;
import com.example.demo.pojo.ClassificationTable;
import com.example.demo.service.ClsssificationTable;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ClassificationTableImpl implements ClsssificationTable {
    @Autowired
    ClassificationTableDao classificationTableDao;
    //增加商品分类
    @Override
    public int add(ClassificationTable classificationTable) {
      return  classificationTableDao.insertSelective(classificationTable);
    }


    //修改商品分类
    @Override
    public int update(ClassificationTable classificationTable) {
     return  classificationTableDao.updateByPrimaryKeySelective(classificationTable);
     }

    //

}
